<?php

include_once("./scripts/function/getBrowser.php");

include_once("./scripts/config.php");

include_once("./scripts/class/gmap.class.php");

include_once("./scripts/function/calcDistance.php");
include_once("./scripts/function/getHidden.php");
include_once("./scripts/function/getLastTweet.php");
include_once("./scripts/function/getRoute.php");
include_once("./scripts/function/printArr.php");
include_once("./scripts/function/setCoords.php");
include_once("./scripts/function/sortBlubble.php");
include_once("./scripts/function/sortDijkstra.php");
include_once("./scripts/function/sortDistance.php");
include_once("./scripts/function/splitLocation.php");

if (!isset($_GET["wayne"])) {
	if (strpos(getBrowser(), "Firefox") === false) {
		header("Location:browser.php");
		exit;
	}
}

if (!isset($_GET["status"])) {
	$_GET["status"] = 1;
}

$addUriString = "?";
$i = 0;
$and = "";

foreach ($_GET as $key => $value){
	if ($i != 0) {
		$and = "&";
	}

	$addUriString .= $and.$key."=".$value;
	$i++;
}

?>

<!DOCTYPE html>
<html lang="de">
<head>
	<!-- Pagesettings -->
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

	<link rel="shortcut icon" href="/favicon.ico" />
	<link rel="apple-touch-icon" href="/apple-touch-icon.png" />

	<!-- Metainformations -->
	<title><?php echo $config["page"]["mainTitle"]; ?></title>
	<meta name="description" content="Ein Backofensimulator" />
	<meta name="author" content="Niranda" />

	<!-- Stylesheets -->
	<link rel="stylesheet" type="text/css" href="styles/standard.css" />
	<link rel="stylesheet" type="text/css" href="styles/top.css" />
	<link rel="stylesheet" type="text/css" href="styles/blubble.css" />
	<link rel="stylesheet" type="text/css" href="styles/flexcrollstyles.css" />
	<link rel="stylesheet" type="text/css" href="styles/popup.css" />

	<!-- JavaScripts -->
	<script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/fader.js"></script>
	<script type="text/javascript" src="js/flexcroll.js"></script>
	<script type="text/javascript" src="js/popup.js"></script>

	<script>
		$(function() {
			$( "#tabs" ).tabs();
		});
	</script>

</head>

<body>
	<div id="top">
		<div class="menu center">
			<div class="menutitle">NiraPath</div>
			<div class="r">
				<div class="l option"><a class="menulink" href="index.php" target="_main">Start</a></div>
				<div class="l option"><a class="menulink" href="http://niranda.net" target="_blank">Niranda.net</a></div>
				<div class="l option"><a class="menulink" id="popupActivator" href="#">Hilfe</a></div>
			</div>
		</div>
	</div>
	<div class="r" id="infoBlubble">
		<div class="blubble">
<!--
			<iframe src="./live.php" width="250px" height="85%" name="liveframe" frameborder="0" scrolling="no">
			</iframe>
-->
			<div class="inBlubble">
				<?php include_once("contentStatus.php"); ?>
			</div>
		</div>
		<div class="blubble">
			<div class="inBlubble">
				<?php include_once("contentInfo.php"); ?>
			</div>
		</div>
	</div>
	<div class="r blubble" style="width:600px; height:600px;">
		<div class="inBlubble">
			<div class="flexcroll">
			<?php include_once("contentMain.php"); ?>
			</div>
		</div>
	</div>
<!-- Popup Box Start -->
	<div id="popup">
		<a id="popupClose">x</a>
		<div>
			<?php include_once("contentHelp.php"); ?>
		</div>
	</div>
	<div id="backgroundPopup">
	</div>
<!-- Popup Box End -->
</body>
</html>